package cn.yeyiu.sexyiu.utils

import java.util.*
import java.util.stream.Collectors
import java.util.stream.IntStream

object DataTool {
    fun shuffle(max: Int): List<Int?> {
        val list = IntStream.range(0, max).boxed().collect(Collectors.toList())
        list.shuffle()
        return list
    }

    fun randInt(max: Int): Int {
        return Random().nextInt(max)
    }
}